package cwiczenia.cwiczenia24.zad1;

import java.awt.*;

public class MyColor {
    private int red;
    private int green;
    private int blue;

    public MyColor(int red, int green, int blue) {
        this.red = red;
        this.green = green;
        this.blue = blue;
    }

    public Color getColor() {
        return new Color(red, green, blue);
    }

    public int getRed() {
        return red;
    }

    public int getGreen() {
        return green;
    }

    public int getBlue() {
        return blue;
    }
}
